home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
5 Star Games: DOS Edition 2
/
5 Star Games - DOS Edition (1995)(Ready to Run).iso
/
dbc
/
db_file.h
< prev
next >
Wrap
Text File
|
1992-02-28
|
2KB
|
48 lines
/****************************************************************************/
/* HEADER FILE FOR DATABOSS MODULE: DB_FILE.C */
/****************************************************************************/
/********************************* CONSTANTS *******************************/
#define A_RDONLY 0x01
#define A_HIDDEN 0x02
#define A_SYSTEM 0x04
#define A_LABEL 0x08
#define A_DIREC 0x10
#define A_ARCH 0x20
#define A_ANYFILE 0x3F
/*********************************** TYPES ********************************/
typedef uchar pathstr[80];
typedef uchar drivestr[3];
typedef uchar dirstr[68];
typedef uchar namestr[9];
typedef uchar extstr[5];
typedef uchar filenamestr[13];
typedef struct {
uchar reserved[21];
uchar attrib;
word time;
word date;
long size;
uchar name[13];
} findrec;
/******************************* PROTOTYPES *******************************/
strptr getenvstr(strptr sout, string envar);
strptr fsearch(pathstr fnout, pathstr fnin, string path);
void fsplit(pathstr path, dirstr dir, namestr name, extstr ext);
strptr fexpand(pathstr sout, pathstr path);
bool getcurrentdir(pathstr sout, byte drive);
bool changedrive(uchar drive);
bool changedir(pathstr path);
bool db_eof(FILE *f);
/* returns true if at end of file
only works for files that have opened in binary mode */
bool db_findfirst(pathstr path, findrec *frec, int attr);
bool db_findnext(findrec *frec);
/***************************** END OF DB_FILE.H *****************************/